package inherit;

    public class ball {
    String ballName;
    String ballSize;
    String ballWeight;

    public String getBallName() {
        return ballName;
    }

    public void setBallName(String ballName) {
        this.ballName = ballName;
    }

    public String getBallSize() {
        return ballSize;
    }

    public void setBallSize(String ballSize) {
        this.ballSize = ballSize;
    }

    public String getBallWeight() {
        return ballWeight;
    }

    public void setBallWeight(String ballWeight) {
        this.ballWeight = ballWeight;
    }

    public String getBallMaterial() {
        return ballMaterial;
    }

    public void setBallMaterial(String ballMaterial) {
        this.ballMaterial = ballMaterial;
    }

    public String getBallSuitable() {
        return ballSuitable;
    }

    public void setBallSuitable(String ballSuitable) {
        this.ballSuitable = ballSuitable;
    }

    String ballMaterial;
    String ballSuitable;

    String GetInfo(){
        return "我是"+ballName+"，我的直径是："+ballSize+"，" + "我的材料是："+ballMaterial+"，我的重量是"+ballWeight+"，" + "我适合"+ballSuitable;
    }
    ball (String ballName,String ballSize, String ballMaterial,String ballWeight,String ballSuitable){
        this.ballName=ballName;
        this.ballSize=ballSize;
        this.ballMaterial=ballMaterial;
        this.ballWeight=ballWeight;
        this.ballSuitable=ballSuitable;
    }
}

